package com.txts.road.app.message.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;

/**
 * 消息视图对象
 *
 * @author baoyr
 * @since 2025-07-17 10:46
 */
@Getter
@Setter
@Schema( description = "消息视图对象")
public class MessageVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "消息ID")
    private Long id;
    @Schema(description = "会话ID")
    private Long sessionId;
    @Schema(description = "发送者ID")
    private Long senderId;
    @Schema(description = "接收者ID")
    private Long receiverId;
    @Schema(description = "消息类型：1-文字，2-语音，3-位置，4-系统消息")
    private Integer messageType;
    @Schema(description = "消息内容")
    private String content;
    @Schema(description = "扩展数据(位置信息等)")
    private String extraData;
    @Schema(description = "是否已读：0-未读，1-已读")
    private Integer isRead;
    @Schema(description = "发送时间")
    private LocalDateTime sendTime;
}
